cubes and line patterns